#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>

int main()
{
	float a = 0.0, b = 0.0, c = 0.0;
	while (scanf("%f %f %f", &a, &b, &c) != EOF)
	{
		if (a == 0)
			printf("Not quadratic equation\n");
		else
		{
			float deta=0.0;
			deta = pow(b, 2.0) - 4 * a * c;
			if (deta == 0)
			{
				if (0 == b)
					printf("x1=x2=%.2f\n", 0.00);
				else
					printf("x1=x2=%.2f\n", -b / (2 * a));
			}
			else if (deta > 0)
					printf("x1=%.2f;x2=%.2f\n", (-b - sqrt(deta)) / (2 * a), (-b + sqrt(deta)) / (2 * a));
			else
					printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi", -b / (2 * a), sqrt(-deta) / (2 * a), -b / (2 * a), sqrt(-deta) / (2 * a));
		}
	}
	return 0;
}